package com.guzhi.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

// 分页查询结果封装类(因为分页查询响应给前端的data有total和rows2类，需要把这2类封装成1个PageResult类，而普通的只有1类)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> {
    private Long total;
    private List<T> rows;
}
